package com.hxzy.order.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.hxzy.order.entity.TtAbnormalImage;
import com.hxzy.order.mapper.TtAbnormalImageMapper;
import com.hxzy.order.service.TtAbnormalImageService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author mingqian.Wu
 * @since 2023-06-27
 */
@Service
public class TtAbnormalImageServiceImpl extends ServiceImpl<TtAbnormalImageMapper, TtAbnormalImage> implements TtAbnormalImageService {

    @Override
    public List<TtAbnormalImage> getList(String id) {
        QueryWrapper<TtAbnormalImage>queryWrapper=new QueryWrapper<>();
        queryWrapper.eq("exception_id",id);
        queryWrapper.select("image_path");
        List<TtAbnormalImage> ttAbnormalImages = baseMapper.selectList(queryWrapper);
        return ttAbnormalImages;

    }
}
